#ifndef USERCHANGEDIALOG_H
#define USERCHANGEDIALOG_H

#include <QDialog>

namespace Ui {
class UserChangeDialog;
}

class UserChangeDialog : public QDialog
{
    Q_OBJECT

public:
    explicit UserChangeDialog(QWidget *parent,QString NO,QString workNumber);
    explicit UserChangeDialog(QWidget *parent,QString NO,QString workNumber,QString checkerWorkNumber,bool checkUserFlag);
    ~UserChangeDialog();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_newWorkNumber_textEdited(const QString &arg1);

    void on_oldWorkNumber_textEdited(const QString &arg1);

private:
    Ui::UserChangeDialog *ui;

    bool checkUserFlag=false;
    QString NO;
    QString workNumber;

    QString oldName;
    QString newName;

    void initOldName();

    void userSubmit();
    void checkSubmit();
};

#endif // USERCHANGEDIALOG_H
